package com.example.demo.dao;

import com.example.demo.entity.StockOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;


@Mapper
public interface StockOrderMapper {

    @Update("truncate table stock_order")
    int delOrderDBBefore();

    @Insert("insert into stock_order values(#{id},#{sid},#{name},#{createTime},#{username})")
    int createOrder(StockOrder order);
}